import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
// 指定表名  This is an entity class corresponding to a database table
@Entity('books')
export class Books {
  @PrimaryGeneratedColumn('uuid')
  id: number;
  @Column()
  name: string;
  @Column()
  auther: string;
  @Column()
  releaseTime: string;
  @Column()
  briefContent: string;
  @Column({ default: 0 })
  isDel: number;
}
